import axios from 'axios'



axios.interceptors.request.use((config) => {
  const token = localStorage.getItem('token');
  if(token) {
    // 携带请求头
    config.headers.token = token
  }
}, (error) => {
  return Promise.reject(error)
})